package com.nbjtjc.safe.mapper.emg.handle;

import com.nbjtjc.safe.model.emg.handle.EmgHandleReport;
import com.nbjtjc.util.MyMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface EmgHandleReportMapper extends MyMapper<EmgHandleReport> {


    List<EmgHandleReport> search(@Param("report") EmgHandleReport emgHandleReport);

    @Select("select * from emg_handle_report where event_id=#{eventId} order by id desc")
    List<EmgHandleReport> findByEventId(@Param("eventId") int eventId);
}